<include file="public@header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>{:lang('IZY_BUSINESS_GAME_ORDER')}</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('Gameorder/renewal')}">
        用户ID：
        <input class="form-control" type="text" name="uid" style="width: 200px;" value="{:input('request.uid')}"
               placeholder="请输入用户ID">
        手机号：
        <input class="form-control" type="number" name="mobile" style="width: 200px;" value="{:input('request.mobile')}"
               placeholder="用户手机号">
        日期：
        <input class="form-control" type="date" name="date" style="width: 200px;" value="{:input('request.date')}">
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('Gameorder/renewal')}">清空</a>
    </form>
    <form method="post" class="js-ajax-form">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>用户uid</th>
                <th>真实姓名</th>
                <th>手机号</th>
                <th>冠名名称</th>
                <th>模板</th>
                <th>投放范围(公里)</th>
                <th>投放时间(天)</th>
                <th>优惠券</th>
                <th>支付金额(元)</th>
                <th>返利金额(元)</th>
                <th>展示次数</th>
                <th>排名</th>
                <th>冠名时间</th>
                <th>冠名地点</th>
                <th>分享链接</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="list" item="vo">
                <tr>
                    <td>{$vo.uid}</td>
                    <td>{$vo.truename}</td>
                    <td>{$vo.mobile}</td>
                    <td>{$vo.adname}</td>
                    <td><img width="50" height="" src="{:lang('GAME_ORDER_TEMPLATE_URL')}{$vo.background}"/></td>
                    <td>{$vo.distance}</td>
                    <td>{$vo.days}</td>
                    <td>
                        <neq name="vo.used" value="0">
                            <empty name="vo.used">
                                暂未使用
                                <else/>
                                {$vo.price}
                            </empty>
                            <else/>
                            暂未使用
                        </neq>
                    </td>
                    <td>{$vo.money}</td>
                    <td>{$vo.returnprofitmoney}</td>
                    <td>{$vo.shownum}</td>
                    <td></td>
                    <td>{:date('Y-m-d H:i:s', $vo.ctime)}</td>
                    <td>
                        经:{$vo.longitude}
                        <br>
                        纬:{$vo.latitude}
                    </td>
                    <td>
                        <a href="{:lang('GAME_SHARE_RULE')}{$vo.sharelink}{:lang('GAME_SHARE_EXTEND_NAME')}">分享链接</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>